/* 主题颜色 - 参考若依系统风格 */
:root {
    --primary-color: #409EFF;     /* 蓝色主色调*/
    --primary-dark: #337ecc;      /* 深蓝色 */
    --primary-light: #66b1ff;     /* 浅蓝色 */
    --secondary-color: #67C23A;   /* 绿色辅助色 */
    --secondary-dark: #529b2e;    /* 深绿色 */
    --secondary-light: #85ce61;   /* 浅绿色 */
    --text-on-primary: #FFFFFF;   /* 主色调上的文字颜色 */
    --text-on-secondary: #FFFFFF; /* 辅助色上的文字颜色 */
    --text-primary: #303133;      /* 主要文字颜色 */
    --text-secondary: #606266;    /* 次要文字颜色 */
    --background-color: #F5F7FA;  /* 背景色 */
    --card-background: #FFFFFF;   /* 卡片背景色 */
    --error-color: #F56C6C;       /* 错误颜色 */
    --success-color: #67C23A;     /* 成功颜色 */
    --warning-color: #E6A23C;     /* 警告颜色 */
    --info-color: #909399;        /* 信息颜色 */
    --border-color: #DCDFE6;      /* 边框颜色 */
    --shadow-color: rgba(0,0,0,0.12); /* 阴影颜色 */
}

/* 全局样式 */
body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* 移除背景颜色，只保留背景图片 */
    background-image: url('/uploads/洛琪希.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

/* 登录页面专用样式 */
body.login-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.login-page::before {
    background-color: rgba(255, 255, 255, 0.2);
}

body.login-page .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

body.login-page .card {
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    backdrop-filter: blur(3px);
}

body.login-page h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

body.login-page input {
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 15px;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.8); /* 提高输入框不透明度 */
}

body.login-page input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.95); /* 聚焦时更不透明 */
}

body.login-page label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: var(--primary-dark);
}

body.login-page .form-group {
    margin-bottom: 25px;
}

body.login-page .btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(64, 158, 255, 0.9); /* 按钮半透明 */
}

body.login-page .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.login-page #msg {
    max-width: 450px;
    width: 100%;
    margin: 15px auto 0;
}

body.login-page .error-msg,
body.login-page .success-msg,
body.login-page .info-msg,
body.login-page .warning-msg {
    text-align: center;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.login-page .error-msg {
    background-color: rgba(245, 108, 108, 0.15);
    border: 1px solid rgba(245, 108, 108, 0.3);
    color: #d32f2f;
}

body.login-page .success-msg {
    background-color: rgba(103, 194, 58, 0.15);
    border: 1px solid rgba(103, 194, 58, 0.3);
    color: #388e3c;
}

body.login-page .info-msg {
    background-color: rgba(144, 147, 153, 0.15);
    border: 1px solid rgba(144, 147, 153, 0.3);
    color: #546e7a;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font: inherit;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

/* 导航栏包装器 */
.nav-wrapper {
    width: 100%;
    background-color: rgba(230, 247, 255, 0.9); /* 淡蓝色背景，增加不透明度 */
    box-shadow: 0 1px 4px var(--shadow-color);
    backdrop-filter: blur(0px); /* 移除模糊效果 */
    position: relative;
    z-index: 10;
}

/* 导航栏样式 - 若依风格 */
.nav {
    display: flex;
    justify-content: space-between; /* 两端对齐 */
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 20px;
    color: var(--text-primary);
    height: 60px; /* 增大高度 */
    line-height: 60px; /* 增大行高 */
    width: 100%;
}

.nav-left, .nav-right {
    display: flex;
    gap: 0; /* 移除间隙，使分割线连续 */
    align-items: center;
}

.nav-left {
    margin-right: 40px; /* 增加左右区域间距 */
}

.nav a {
    color: #000000; /* 修改为黑色 */
    text-decoration: none;
    font-weight: 500;
    padding: 0 15px; /* 增大内边距 */
    transition: all 0.3s;
    height: 60px; /* 增大高度 */
    display: inline-block;
    font-size: 16px; /* 增大字体 */
    border-right: 1px solid rgba(0, 0, 0, 0.1); /* 添加右侧分割线 */
    background-color: rgba(255, 255, 255, 0.1); /* 添加轻微底色 */
}

.nav a:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.1); /* 为第一个元素添加左侧分割线 */
}

.nav a:hover {
    background-color: #bae7ff; /* 悬停时底色加深 */
    color: #000000; /* 悬停时保持黑色 */
}

.nav a.active {
    background-color: #1890ff; /* 当前活动页面为深蓝色 */
    color: #ffffff; /* 文字为白色 */
    font-weight: 600;
}

/* 按钮样式 - 若依风格 */
button, .btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

button:hover, .btn:hover {
    background-color: var(--primary-light);
    color: var(--text-on-primary);
}

button:active, .btn:active {
    background-color: var(--primary-dark);
}

button:disabled, .btn:disabled {
    background-color: #a0cfff;
    cursor: not-allowed;
    color: #FFFFFF;
}

button.secondary, .btn.secondary {
    background-color: var(--secondary-color);
}

button.secondary:hover, .btn.secondary:hover {
    background-color: var(--secondary-dark);
}

button.success, .btn.success {
    background-color: var(--success-color);
}

button.success:hover, .btn.success:hover {
    background-color: #3d8b40;
}

button.warning, .btn.warning {
    background-color: var(--warning-color);
    color: #000;
}

button.warning:hover, .btn.warning:hover {
    background-color: #e0a800;
}

button.error, .btn.error, .delete-btn {
    background-color: var(--error-color);
}

button.error:hover, .btn.error:hover, .delete-btn:hover {
    background-color: #d32f2f;
}

.contact-btn {
    background-color: var(--info-color);
}

.contact-btn:hover {
    background-color: var(--secondary-dark);
}

/* 表单样式 */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* 卡片样式 - 若依风格 */
.card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 var(--shadow-color);
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px var(--shadow-color);
    background-color: rgba(255, 255, 255, 0.95);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.95); /* 提高表格背景不透明度 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
    /* 移除模糊效果 */
}

th {
    background-color: var(--primary-color);
    color: #000000; /* 修改为黑色 */
    text-align: center; /* 居中对齐 */
    padding: 12px 15px;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: center; /* 居中对齐 */
    vertical-align: middle; /* 垂直居中 */
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(245, 245, 245, 0.95);
}

/* 订单表格操作按钮样式 */
.order-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.order-actions button {
    padding: 6px 10px;
    font-size: 13px;
    opacity: 0.6; /* 默认半透明 */
    transition: all 0.3s;
    margin: 2px;
}

.order-actions button.active {
    opacity: 1; /* 可操作按钮完全不透明 */
    cursor: pointer;
}

.order-actions button:not(.active) {
    pointer-events: none; /* 禁用不可操作的按钮 */
}

.order-actions button:hover.active {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 订单状态标签 */
.status-tag {
    color: #000000;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

/* 导航栏用户状态标签 */
.nav-right .status-tag,
.nav-right .welcome-text {
    color: #000000;
    font-weight: 500;
    font-size: 16px;
    padding: 0 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    min-width: auto;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    margin-top: 0;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* 消息提示样式 */
.error-msg {
    color: var(--error-color);
    background-color: #FFEBEE;
    border: 1px solid var(--error-color);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.success-msg {
    color: var(--success-color);
    background-color: #E8F5E9;
    border: 1px solid var(--success-color);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.warning-msg {
    color: var(--warning-color);
    background-color: #FFF8E1;
    border: 1px solid var(--warning-color);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.info-msg {
    color: var(--info-color);
    background-color: #E3F2FD;
    border: 1px solid var(--info-color);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 分页样式 */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    color: #000000; /* 修改为黑色 */
    font-weight: 500;
}

.pagination button:hover {
    background-color: #f5f5f5;
}

.pagination button.active {
    background-color: #ff6b6b;
    color: black; /* 修改为黑色 */
    border-color: #ff6b6b;
    font-weight: 600;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    color: #666; /* 禁用按钮文字颜色 */
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    margin-bottom: 20px;
    align-items: stretch; /* 确保子元素高度一致 */
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    height: 42px; /* 固定高度 */
    box-sizing: border-box; /* 确保padding不会增加元素总高度 */
}

.search-bar button {
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: black; /* 修改为黑色 */
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    height: 42px; /* 固定高度与输入框一致 */
    box-sizing: border-box; /* 确保padding不会增加元素总高度 */
    font-size: 15px;
    font-weight: 500;
}

.search-bar button:hover {
    background-color: #ff5252;
}

/* 分类过滤器样式 */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    color: #000000; /* 修改为黑色 */
    font-weight: 500;
}

.category-btn:hover {
    background-color: #eee;
}

.category-btn.active {
    background-color: #ff6b6b;
    color: black; /* 修改为黑色 */
    border-color: #ff6b6b;
    font-weight: 600;
}

/* 无商品提示 */
.no-products {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* 商品列表样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.95); /* 提高不透明度 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s;
    /* 移除模糊效果 */
}

.product-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.95);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-dark);
}

/* 商品图片样式 */
/* 商品列表中的图片样式 - 小图 */
.product-card .product-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9比例 */
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品详情中的图片样式 - 大图 */
.product-detail .product-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9比例 */
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-detail .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.product-card .product-image.no-image span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 图片预览容器 */
.image-preview-container {
    margin-top: 10px;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9比例 */
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#imagePreview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hidden {
    display: none !important;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.98);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-primary);
}

/* 评价表单样式 */
#reviewForm {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

#reviewForm div {
    margin-bottom: 15px;
}

#reviewForm label {
    display: block;
    margin-bottom: 5px;
}

#reviewForm select, #reviewForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

#reviewForm button {
    margin-right: 10px;
}

/* 数量控制样式 */
.quantity-control {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 4px;
}

.quantity {
    margin: 0 10px;
    min-width: 30px;
    text-align: center;
}

/* 状态标签样式 */
.status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: var(--warning-color);
    color: #000;
}

.status-shipped {
    background-color: var(--info-color);
    color: white;
}

.status-completed {
    background-color: var(--success-color);
    color: white;
}

.status-cancelled {
    background-color: var(--error-color);
    color: white;
}

.status-reviewed {
    background-color: var(--primary-color);
    color: white;
}

/* 库存状态样式 */
.stock-warning {
    background-color: #fff3cd;
}

.stock-error {
    background-color: #f8d7da;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
    }

    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* 购物车样式 */
.quantity-cell {
    width: 120px;
}

.total-row {
    font-weight: bold;
    background-color: #f9f9f9;
}

.total-row td {
    padding: 15px;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none;
}

.w-full {
    width: 100%;
}

/* 页脚样式 */
.footer {
    margin-top: 50px;
    padding: 20px 0;
    background-color: rgba(64, 158, 255, 0.9);
    color: white;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

/* 商品详情页样式优化 */
.product-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #FF6B6B;
}

/* 商品图片样式优化 */
.product-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    background-color: #FAFAFA;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.no-image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5F5F5;
    color: #AAAAAA;
    font-style: italic;
}

/* 商品信息区域 */
.product-info {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 15px 0;
}

.info-row {
    display: contents;
}

.info-row .label {
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 0;
}

.info-row .value {
    color: var(--text-primary);
    padding: 8px 0;
}

.star {
    color: #E6A23C;
    font-weight: bold;
}

/* 购买区域样式 */
.buy-section {
    background-color: #FAFAFA;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-control label {
    margin-right: 15px;
    font-weight: 600;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    background-color: #F5F7FA;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.quantity-control button:hover {
    background-color: #ECEFF5;
    color: var(--primary-color);
}

.quantity-control span {
    padding: 0 15px;
    min-width: 40px;
    text-align: center;
    font-size: 16px;
}

.buy-buttons {
    display: flex;
    gap: 15px;
}

.add-to-cart {
    background-color: #E6A23C;
}

.add-to-cart:hover {
    background-color: #ebb563;
}

.buy-now {
    background-color: #F56C6C;
}

.buy-now:hover {
    background-color: #f78989;
}

/* 评价区域样式 */
.reviews-section {
    margin-top: 30px;
}

.reviews-section h3 {
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid #EBEEF5;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-score {
    color: #E6A23C;
    font-weight: bold;
}

.review-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.review-comment {
    color: var(--text-primary);
    line-height: 1.5;
}

.no-reviews {
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    background-color: #FAFAFA;
    border-radius: 4px;
}

/* 商品列表页面专用样式 */
body.products-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.products-page .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

body.products-page section {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

body.products-page .card {
    flex: 1;
    overflow: hidden;
    margin-bottom: 15px;
    padding: 15px;
}

body.products-page #productList {
    height: 100%;
    overflow: hidden;
}

body.products-page h2 {
    margin-bottom: 15px;
    padding-bottom: 5px;
}

body.products-page .search-bar {
    margin-bottom: 15px;
}

body.products-page .category-filter {
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body.products-page .category-filter::-webkit-scrollbar {
    display: none;
}

body.products-page .pagination {
    margin-top: 15px;
    margin-bottom: 15px;
}

.welcome-text {
    color: #000000;
    font-weight: 500;
    font-size: 16px;
    padding: 0 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.status-tag {
    color: #000000;
    font-weight: 500;
    padding: 0 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
}